#ifndef __Bender_h__
#define __Bender_h__

#include "Arduino.h"

#define CW 0
#define CCW 1

#define MOTOR_ENABLE 19
#define MOTOR_CLOCKWISE 12
#define MOTOR_COUNTER_CLOCKWISE 13

#define HALL_GS 2
#define HALL1 18
#define HALL2 20
#define HALL3 3

#define BIG_RED_BUTTON 21

#define VALVE_ENABLE 36
#define VALVE1 46
#define VALVE2 48
#define VALVE3 34

#define LED_ENABLE 44
#define LED1 42
#define LED2 38
#define LED3 40

#define ADK_COMMAND_BUTTON 1
#define ADK_COMMAND_MIX_DONE  2

#define COMMAND_MIX 1

extern int motorSpeed;

extern int lastDirection;

extern int buttonState;

extern int activeHallEffect;
extern int lastHallEffect;

void initBender(void);
void MotorCtrl(int motorDirection, int motorCtrlSpeed);

void openValve(int valve);
void closeValves();
void turnOnLED(int led, int brightness);

#endif /*  __Bender_h__ */
